package com.zzxy.controller;

import org.jetbrains.annotations.NotNull;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller

public class UserAnnoController {
    @RequestMapping("/add.do")
    public String list(Model model){
       model.addAttribute("username","zhangsanfeng");
        return "/user/userList";
    }
    @RequestMapping("/add")
    public String add(Model model){
 return"/user/userAdd";
    }
}
